package edu.fivegroup.mall.cart;

import java.io.Serializable;

public class Cart implements Serializable {
     /** 主键 */
     private Integer id;
     /** 商品编号 */
     private Integer gid;
     /** 商品标题 */
     private String title;
     /** 商品价格 */
     private Double price;
     /** 消费者ID */
     private Integer cid;

    public Cart() {
    }

    public Cart(Integer id, Integer gid, String title, Double price, Integer cid) {
        this.id = id;
        this.gid = gid;
        this.title = title;
        this.price = price;
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", gid=" + gid +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", cid=" + cid +
                '}';
    }
}
